package java.socket;

import java.io.IOException;
import java.net.Socket;

public class Client {
   private Socket socket;
    public Client() {
        System.out.println("正在链接服务器");
        try {

            socket =new Socket("localhos",8088);
            System.out.println("成功与服务器建立链接");
        } catch (IOException e) {
            System.out.println("服务器链接失败");
            throw new RuntimeException(e);
        }




    }
  public void start(){

    }

    public static void main(String[] args) {
        Client client = new Client();
        client.start();
    }

}
